package com.kateba.android.bluetooth;

import android.bluetooth.BluetoothSocket;

import com.kateba.android.blueinput.Singleton;
import com.kateba.android.hid.HidParser;

public class BTDev
{
  public HidParser HidParserObj = new HidParser();
  final String LOG_TAG = "BlueInput::BTDEV";
  public boolean m_bBTDEVRDValid;
  public BluetoothSocket m_btsckCTRL = null;
  public BluetoothSocket m_btsckINTR = null;
  public Thread m_hReadThreadCTRL;
  public Thread m_hReadThreadINTR;
  public byte[] m_lpRD;
  public int m_nBTDEVType;
  public int m_nId;
  public int m_nL2CAPSockCTRL = -1;
  public int m_nL2CAPSockINTR = -1;
  public String m_szAddress;
  public String m_szName;

  public BTDev(String paramString1, String paramString2, int paramInt, byte[] paramArrayOfByte)
  {
    this.m_szName = paramString1;
    this.m_szAddress = paramString2;
    this.m_lpRD = paramArrayOfByte;
    Singleton.getInstance().Debug("BlueInput::BTDEV", "Create HidParser OBJ " + paramString1 + " " + paramString2);
    this.m_bBTDEVRDValid = false;
    this.HidParserObj = new HidParser();
    this.m_nBTDEVType = paramInt;
  }

  public boolean isConnected()
  {
    if ((this.m_btsckCTRL != null) && (this.m_btsckINTR != null));
    for (int i = 1; ; i = 0)
      return i==1?true:false;
  }
}